home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 48 / Mac Magazin CD 48.iso / Software / Multimedia / Sound / MultiCD 1.4 Complete / Decompressors / About Decompressors next >
Encoding:
Text File  |  1998-06-16  |  6.2 KB  |  57 lines  |  [TEXT/ttxt]

  1. MultiCD Decompressors
  2.  
  3. MultiCD supports four algorithms for sound compression that are not always supported by the Mac OS.  If you want to use these compressors you may need to install or update some system extensions to decompress the sounds.  If you don't use the compressors during recording from CD you don't need a decompressor and can ignore this document and associated files.
  4.  
  5. There are four decompressors you may need to play sounds recorded by MultiCD:
  6. -  diff:  implements a very simple differential decoder,  converting 4 bit difference values back
  7.     into 8 bit sound samples.  This encoding/decoding scheme is unlikely to ever be available
  8.     from Apple (or anyone else) and is available through the system extension called diff.
  9. - IMA4:  implements the Interactive Multimedia Association (IMA) adaptive differential decoder.
  10.     It works on blocks of data but is equivalent to converting 4 bit code words into 16 bit sound
  11.     samples. IMA4 is supported by MultiCD only if Sound manager version 3.2 or later is available. 
  12. -  ALaw :  implements A law decoding, converting 8 bit codewords back into 16 bit sound   
  13.     samples. After decompression only 13 bits are actually valid, the low 3 bits are always 0.
  14.     This format is supported by Sound Manager version 3.3  as  part of QuickTime version 3.0
  15.     so an separate decompressor is no longer really needed.  I've included the decompressor system 
  16.     extension (ALaw) for those who can't or don't want to use Quicktime 3.0.
  17. - mu Law: implements mu (µ) law decoding, converting 8 bit codewords back into 16 bit sound   
  18.     samples. After decompression only 14 bits are actually valid, the low 2 bits are always 0.
  19.     This format is supported by Sound Manager version 3.1 and later. It is recommended that
  20.     you use the Apple  version of the decompressor. I wrote a mu law decompressor once upon a 
  21.     time but it's easier to just install a newer version of the Sound Manager if you want to play 
  22.     mu law sounds.
  23.  
  24. The rules for encoding/decoding  both A and mu (µ) law are defined in ITU standard G.711.  Both compress the sound on input so that small signals are encoded with finer granularity than large signals. This allows the use of fewer bits while preserving a low perceived noise level for quiet signals.  A and µ law were originally designed for use in digital telephone systems but more recently have also been used for saving sound files on computers. Therefore these decoders may also be useful for encoded sounds from sources other than MultiCD. Until the release of QuickTime 3.0  the Mac OS supported mu law but not A law so I decided to write one to see what it sounds like (not much different from mu law to tell the truth). 
  25.  
  26. Note that unless your Macintosh supports 16 bit sound output the A and µ law decoders will only result in at best 8 bit sound.
  27.  
  28. The differential encoding scheme replaces each 8 bit input sample with a 4 bit difference value between the current and previous sample giving a  two to one compression factor. The decoder adds the difference to the previous recovered value to restore an approximation of the  input signal. It relies on the fact that adjacent sound samples are typically quite correlated and don't differ that much in value. As a result the difference between samples can be encoded  using fewer bits than the sample values themselves. In this implementation the difference value is encoded using a fixed coding scheme.  Considerably more sophisticated schemes exist using A or µ law samples instead of  linear 8 bit and adapting the coding of the difference values dynamically (IMA4 is one example of this). However, the simple scheme I use actually works quite well except for sounds with a lot of sudden changes (loud bangs, cuckoo clocks ...).  
  29.  
  30. INSTALLATION
  31. To install the diff or ALaw decompressors drag the one(s) you want to use to the extensions folder inside your system folder or simply drag them to the closed system folder and let the Mac figure out where to put them. The next time you restart your Mac the decompressors will be installed as sound components in the operating system, ready to handle compressed sounds.
  32.  
  33. NOTES: 
  34. -  the diff and ALaw decompressors require Sound Manager 3.0 or later to operate. If Sound Manager 3.0 is 
  35.     not present nothing catastophic happens but the decompressors won't install themselves and you will get
  36.     an error message when you try to play a sound that needs that decompressor.
  37. - MultiCD will encode sounds to use the Apple A law encoder if it is installed on your computer. Sounds will
  38.    be coded by MultiCD to use my A law decompressor only if it is installed and the Apple decompressor is
  39.    not installed.  If neither decompressor is installed then sounds are encoded to use the Apple decompressor.
  40. - snd and AIFF files encoded for my A law decompressor can not be played by the Apple A law decompressor. 
  41.    It is possible to convert the files from one format to the other, send me an email if you want directions on 
  42.    how to do so.
  43.        
  44.  
  45. COPYRIGHT AND LEGAL STUFF
  46. Most of the code in the decompressors comes from MewLaw written by Kip Olson and copyright 1994 by Apple Computer.  It is used in accordance with the terms of the Apple Software License Agreement on the Develop Bookmark CD. The actual code to do the decompression is copyright 1995 and 1997 by Alex Newcombe. The author is not aware of any other copyrights  other than those listed above that are applicable to this software but  makes no warranty of non-infringement of third parties' rights. 
  47.  
  48. The decompressors are distributed as is with no warranties expressed or implied about what they may or may not do on your computer. In no event will Alex Newcombe accept liability for any damages or expenses you may incur from using or inability to use this software or associated compressed sound files, including loss of data, loss of profits, interruption of business or similar.  If you are not willing to accept any risks associated with the use of the decompressors your only remedy is to not use the software.
  49.  
  50. Any distribution of this software must include unmodified versions of this document and warnings plus the program itself.  This software is free in the sense that no payment is expected for it but Alex Newcombe reserves all rights to the software written by him.
  51.  
  52. How to contact the author:
  53. eanewcombe@aol.com
  54.   
  55.  
  56.  
  57.